Skip to content

Conversation

@codeling
Copy link
Contributor

@codeling codeling commented Nov 21, 2025

Fixes CTK build against Qt6 with tests (BUILD_TESTING) enabled - an include is missing.

#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QRegExp>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be used in a Qt6 build without Qt5Compat module?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you're right, it requires qt5compat (though that seems to be available already in the according target, I didn't have to add it)

Other targets such as widgets use qt5compat too:
https://github.com/commontk/CTK/blob/master/Libs/Widgets/ctkConsole.cpp#L63

so maybe it gets pulled in via some dependency?

But in the long run the better fix is a replacement through QRegularExpression, so I will do that instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants